<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0 ,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>结算页面</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <script  th:src="@{/layui/layui.js}"></script>
    <link th:href="@{/before/AmazeUI-2.4.2/assets/css/amazeui.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/before/basic/css/demo.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/before/css/cartstyle.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/before/css/jsstyle.css}" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/font-awesome/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/Ionicons/css/ionicons.min.css}">
    <link rel="stylesheet" th:href="@{/adminlte/dist/css/AdminLTE.min.css}">
    <script type="text/javascript" th:src="@{/before/js/address.js}"></script>


    <link rel="stylesheet" th:href="@{/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/adminlte/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/adminlte/dist/css/AdminLTE.min.css}">
    <link rel="stylesheet" th:href="@{/bootstrap-table/bootstrap-table.min.css}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" th:href="@{/adminlte/dist/css/skins/_all-skins.min.css}">
    <link rel="stylesheet" th:href="@{/bootstrap-table/bootstrap-table.css}">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <script  th:src="@{/js/jquery-3.4.1.min.js}"></script>
    <script  th:src="@{/adminlte/bower_components/jquery/dist/jquery.min.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script  th:src="@{/adminlte/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
    <script  th:src="@{/layui/layui.js}"></script>
    <!-- FastClick -->
    <script  th:src="@{/adminlte/bower_components/fastclick/lib/fastclick.js}"></script>
    <!-- AdminLTE App -->
    <script  th:src="@{/adminlte/dist/js/adminlte.min.js}"></script>
    <!-- AdminLTE for demo purposes -->
    <script  th:src="@{/adminlte/dist/js/demo.js}"></script>
    <script th:src="@{/bootstrap-table/bootstrap-table.min.js}"></script>
    <script th:src="@{/bootstrap-table/locale/bootstrap-table-zh-CN.js}"></script>

    <!-- Google Font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

</head>

<body>

<!--顶部导航条 -->
<div class="am-container header">
    <ul class="message-l">
        <div class="topMessage">
            <div class="menu-hd">
                <a th:href="@{/user/details}" target="_top" class="h" style="color: orangered;">欢迎您,<span
                        th:text="${session.session_user.userName}"></span></a>
            </div>
        </div>
    </ul>
    <ul class="message-r">
        <div class="topMessage home">
            <div class="menu-hd"><a th:href="@{/page/return}" target="_top" class="h">商城首页</a></div>
        </div>
        <div class="topMessage my-shangcheng">
            <div class="menu-hd MyShangcheng"><a th:href="@{/before/person/index}" target="_top"><i
                    class="am-icon-user am-icon-fw"></i>个人中心</a>
            </div>
        </div>
        <div class="topMessage mini-cart">
            <div class="menu-hd"><a id="mc-menu-hd" href="#" target="_top"><i
                    class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum"
                                                                                          class="h">0</strong></a></div>
        </div>
        <div class="topMessage favorite">
            <div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a>
            </div>
    </ul>
</div>

<!--悬浮搜索框-->

<div class="nav white">
    <div class="logo"><img th:src="@{/before/images/logo.png}"/></div>
    <div class="logoBig">
        <li><img th:src="@{/before/images/logobig.png}"/></li>
    </div>

    <div class="search-bar pr">
        <a name="index_none_header_sysc" href="#"></a>
        <form>
            <input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
            <input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
        </form>
    </div>
</div>

<div class="clear"></div>
<div class="concent">
    <!--地址 -->
    <div class="paycont">
        <div class="address">
            <h3>确认收货地址 </h3>
            <div class="control">
                <div class="tc-btn createAddr theme-login am-btn am-btn-danger">使用新地址</div>
            </div>
            <div class="clear"></div>
            <ul>
                <div class="per-border"></div>
                <li class="user-addresslist defaultAddr" th:each="user:${user}">

                    <div class="address-left">
                        <div class="user DefaultAddr">

										<span class="buy-address-detail">   
                   <span class="buy-user" th:text="${user.userName}"> </span>
										<span th:text="${user.phone}" class="buy-phone"></span>
										</span>
                        </div>
                        <div class="default-address DefaultAddr">
                            <span class="buy-line-title buy-line-title-type">收货地址：</span>
                            <span class="buy--address-detail" th:text="${user.address}">
<!--								   <span class="province">湖北</span>省-->
<!--										<span class="city">武汉</span>市-->
<!--										<span class="dist">洪山</span>区-->
<!--										<span class="street">雄楚大道666号(中南财经政法大学)</span>-->
<!--										</span>-->

                            </span>
                        </div>
                        <ins class="deftip">默认地址</ins>
                    </div>
                    <div class="address-right">
                        <a th:href="@{/before/person/address.html}">
                            <span class="am-icon-angle-right am-icon-lg"></span></a>
                    </div>
                    <div class="clear"></div>

<!--                    <div class="new-addr-btn">-->
<!--                        <a href="#" class="hidden">设为默认</a>-->
<!--                        <span class="new-addr-bar hidden">|</span>-->
<!--                        <a th:href="@{'/order/edits?id='+${user.uId}}">编辑</a>-->
<!--                        <span class="new-addr-bar">|</span>-->
<!--                        <a href="javascript:void(0);" onclick="delClick(this);">删除</a>-->
<!--                    </div>-->

                </li>


                <div class="per-border"></div>
                <li class="user-addresslist" th:each="ladr : ${list}">
                    <div class="address-left">
                        <div class="user DefaultAddr">

                										<span class="buy-address-detail">
                                   <span class="buy-user"> <p th:text="${ladr.userName}"></p></span>
                										<span class="buy-phone"><p th:text="${ladr.phone}"></p></span>
                										</span>
                        </div>
                        <div class="default-address DefaultAddr">
                            <span class="buy-line-title buy-line-title-type">收货地址：</span>
                            <span class="buy--address-detail">
<!--                								   <span class="province">湖北</span>省-->
<!--                										<span class="city">武汉</span>市-->
<!--                										<span class="dist">武昌</span>区-->
                										<span class="street"><p th:text="${ladr.address}"></p></span>
                										</span>

                            </span>
                        </div>
                        <ins class="deftip hidden">默认地址</ins>
                    </div>
                    <div class="address-right">
                        <span class="am-icon-angle-right am-icon-lg"></span>
                    </div>
                    <div class="clear"></div>
                    <div class="new-addr-btn">
<!--                        <a th:href="@{'/user/editadr?id='+${ladr.adrId}}" >设为默认</a>-->
                        <a href="javascript:void(0)" th:onclick="Default([[${ladr.adrId}]])">设为默认 </a>
<!--                        <a th:href="@{'/user/editadr?id='+${ladr.adrId}}" >设为默认</a>-->

                        <span class="new-addr-bar hidden">|</span>
<!--                        <a th:href="@{'/useradr/editadr?id='+${ladr.adrId}}" onclick="edit1()">编辑</a>-->
<!--                        <a href='javascript:void(0)' οnclick='edit(\""+${ladr.adrId}+"\")'>编辑</a>-->
<!--                        <a href="javascript:void(0)" th:onclick="'javascript:Edit(\"+${ladr.adrId}+'\')'">编辑</a>-->
                        <a href="javascript:void(0)" th:onclick="Edit([[${ladr.adrId}]])">编辑 </a>
<!--                        <button th:onclick="Edit('+${ladr.adrId}+')">修改</button>-->

                        <span class="new-addr-bar">|</span>
                        <a th:href="@{'/useradr/deleteadr?id='+${ladr.adrId}}">删除</a>
                    </div>



<!--                <div class="per-border"></div>-->
<!--                <li class="user-addresslist">-->
<!--                    <div class="address-left">-->
<!--                        <div class="user DefaultAddr">-->

<!--										<span class="buy-address-detail">   -->
<!--                   <span class="buy-user">艾迪 </span>-->
<!--										<span class="buy-phone">15871145629</span>-->
<!--										</span>-->
<!--                        </div>-->
<!--                        <div class="default-address DefaultAddr">-->
<!--                            <span class="buy-line-title buy-line-title-type">收货地址：</span>-->
<!--                            <span class="buy&#45;&#45;address-detail">-->
<!--								   <span class="province">湖北</span>省-->
<!--										<span class="city">武汉</span>市-->
<!--										<span class="dist">武昌</span>区-->
<!--										<span class="street">东湖路75号众环大厦2栋9层902</span>-->
<!--										</span>-->

<!--                            </span>-->
<!--                        </div>-->
<!--                        <ins class="deftip hidden">默认地址</ins>-->
<!--                    </div>-->
<!--                    <div class="address-right">-->
<!--                        <span class="am-icon-angle-right am-icon-lg"></span>-->
<!--                    </div>-->
<!--                    <div class="clear"></div>-->

<!--                    <div class="new-addr-btn">-->
<!--                        <a href="#">设为默认</a>-->
<!--                        <span class="new-addr-bar">|</span>-->
<!--                        <a href="#">编辑</a>-->
<!--                        <span class="new-addr-bar">|</span>-->
<!--                        <a href="javascript:void(0);" onclick="delClick(this);">删除</a>-->
<!--                    </div>-->

<!--                </li>-->

            </ul>

            <div class="clear"></div>
        </div>


        <form id="myform" th:action="@{/order/save}" method="post">
            <!--物流 -->
            <div class="logistics">
                <h3>选择物流方式</h3>
                <ul class="op_express_delivery_hot">
                    <li data-value="yuantong" class="OP_LOG_BTN  "><i class="c-gap-right"
                                                                      style="background-position:0px -468px"></i>圆通<input
                            name="check" value="10" type="radio"/><span></span>
                    </li>
                    <li data-value="shentong" class="OP_LOG_BTN  "><i class="c-gap-right"
                                                                      style="background-position:0px -1008px"></i>申通<input
                            name="check" value="15" type="radio"/><span></span>
                    </li>
                    <li data-value="yunda" class="OP_LOG_BTN  "><i class="c-gap-right"
                                                                   style="background-position:0px -576px"></i>韵达<input
                            name="check" value="13" type="radio"/><span></span>
                    </li>
                    <li data-value="zhongtong" class="OP_LOG_BTN op_express_delivery_hot_last "><i class="c-gap-right"
                                                                                                   style="background-position:0px -324px"></i>中通<input
                            name="check" value="14" type="radio"/><span></span>
                    </li>
                    <li data-value="shunfeng" class="OP_LOG_BTN  op_express_delivery_hot_bottom"><i class="c-gap-right"
                                                                                                    style="background-position:0px -180px"></i>顺丰<input
                            name="check" value="16" type="radio"/><span></span>
                    </li>

                </ul>
            </div>
            <div class="clear"></div>

            <!--支付方式-->
            <div class="logistics">
                <h3>选择支付方式</h3>
                <ul class="pay-list">
                    <li class="pay card"><img th:src="@{/before/images/wangyin.jpg}"/>银联<span></span></li>
                    <li class="pay qq"><img th:src="@{/before/images/weizhifu.jpg}"/>微信<span></span></li>
                    <li class="pay taobao"><img th:src="@{/before/images/zhifubao.jpg}"/>支付宝<span></span></li>
                </ul>
            </div>
            <div class="clear"></div>


            <div class="pay-total">
                <!--留言-->
                <div class="order-extra">
                    <div class="order-user-info">
                        <div id="holyshit257" class="memo">
                            <label>买家留言：</label>
                            <input type="text" name="message" title="选填,对本次交易的说明（建议填写已经和卖家达成一致的说明）"
                                   placeholder="选填,建议填写和卖家达成一致的说明"
                                   class="memo-input J_MakePoint c2c-text-default memo-close">
                            <div class="msg hidden J-msg">
                                <p class="error">最多输入500个字符</p>
                            </div>
                        </div>
                    </div>

                </div>
                <!--优惠券 -->
                <div class="buy-agio">
                    <li class="td td-coupon">

                        <span class="coupon-title">优惠券</span>
                        <select data-am-selected name="se">
                            <option id="ot" th:each="coupon:${coupon}">
                                <div class="c-price">
                                    <strong th:text="${coupon.discount}">￥8</strong>
                                </div>
                                <!--<div class="c-limit" th:text="${coupon.content}">-->
                                <!--【消费满95元可用】-->
                                <!--</div>-->
                            </option>
                        </select>
                    </li>

                    <li class="td td-bonus">

                        <span class="bonus-title">红包</span>
                        <select data-am-selected>
                            <option value="a">
                                <div class="item-info">
                                    ¥50.00<span>元</span>
                                </div>
                                <div class="item-remainderprice">
                                    <span>还剩</span>10.40<span>元</span>
                                </div>
                            </option>
                            <option value="b" selected>
                                <div class="item-info">
                                    ¥50.00<span>元</span>
                                </div>
                                <div class="item-remainderprice">
                                    <span>还剩</span>50.00<span>元</span>
                                </div>
                            </option>
                        </select>

                    </li>
                    <div>
                        <button type="submit" style="width: 30%;margin-left: 280px;" class="btn btn-block btn-warning">
                            <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">立即支付</font></font>
                        </button>
                        <button th:attr="onclick=|pay()|" type="button" style="width: 30%; margin-right: 120px ;margin-top: -35px;" class="btn  btn-warning">
                            <font style="vertical-align: inherit;"><font style="vertical-align: inherit;">稍后支付</font></font>
                        </button>
                    </div>
                </div>

                <div class="clear"></div>
            </div>
        </form>
        <!--含运费小计 -->
        <div class="buy-point-discharge ">
            <p class="price g_price ">
                合计（含运费） <span>¥</span><em class="pay-sum">244.00</em>
            </p>
            <div class="clear"></div>
        </div>


        <!--订单 -->
        <div class="concent">
            <div id="payTable">
                <h3>确认订单信息</h3>
                <div class="cart-table-th">
                    <div class="wp">

                        <div class="th th-item">
                            <div class="td-inner">商品信息</div>
                        </div>
                        <div class="th th-price">
                            <div class="td-inner">单价</div>
                        </div>
                        <div class="th th-amount">
                            <div class="td-inner">数量</div>
                        </div>
                        <div class="th th-sum">
                            <div class="td-inner">金额</div>
                        </div>
                        <div class="th th-oplist">
                            <div class="td-inner">配送方式</div>
                        </div>

                    </div>
                </div>
                <div class="clear"></div>

                <tr class="item-list">
                    <div class="bundle  bundle-last">

                        <div class="bundle-main">
                            <ul class="item-content clearfix" th:each="shopcard:${shopcard}">
                                <div class="pay-phone">
                                    <li class="td td-item">
                                        <div class="item-pic">
                                            <a href="#" class="J_MakePoint">
                                                <img style="width: 80%"
                                                     th:src="${shopcard.getProducts().get(0).productPic}"
                                                     class="itempic J_ItemImg"></a>
                                        </div>
                                        <div class="item-info">
                                            <div class="item-basic-info">
                                                <a th:text="${shopcard.getProducts().get(0).content}" href="#"
                                                   class="item-title J_MakePoint" data-point="tbcart.8.11">美康粉黛醉美唇膏
                                                    持久保湿滋润防水不掉色</a>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="td td-info">
                                        <div class="item-props">
                                            <span class="sku-line">颜色：12#川南玛瑙</span>
                                            <span class="sku-line">包装：裸装</span>
                                        </div>
                                    </li>
                                    <li class="td td-price">
                                        <div class="item-price price-promo-promo">
                                            <div class="price-content">
                                                <em th:text="${shopcard.getProducts().get(0).dazhe}"
                                                    class="J_Price price-now">39.00</em>
                                            </div>
                                        </div>
                                    </li>
                                </div>
                                <li class="td td-amount">
                                    <div class="amount-wrapper ">
                                        <div class="item-amount ">
                                            <span class="phone-title">购买数量</span>
                                            <div class="sl">
                                                <input class="min am-btn" name="" type="button" value="-"/>
                                                <input th:value="${shopcard.pnum}" class="text_box" name="" type="text"
                                                       style="width:30px;"/>
                                                <input class="add am-btn" name="" type="button" value="+"/>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li class="td td-sum">
                                    <div class="td-inner">
                                        ￥<em tabindex="0" th:text="${shopcard.jine}" class="J_ItemSum number">1321</em>
                                    </div>
                                </li>
                                <li class="td td-oplist">
                                    <div class="td-inner">
                                        <span class="phone-title">配送方式</span>
                                        <div class="pay-logis">
                                            快递<b th:text="${session.peisong}" class="sys_item_freprice">10</b>元
                                        </div>
                                    </div>
                                </li>

                            </ul>
                            <div class="clear"></div>

                        </div>
                        </div>
                </tr>
                <div class="clear"></div>
            </div>


        </div>
        <div class="clear"></div>


        <!--信息 -->
        <div class="order-go clearfix" style="width:30% ;float: right">
            <div class="pay-confirm clearfix">
                <div class="box">
                    <div tabindex="0" id="holyshit267" class="realPay"><em class="t">实付款：</em>
                        <span class="price g_price ">
                                    <span>¥</span> <em th:text="${sum}" class="style-large-bold-red "
                                                       id="J_ActualFee"></em>
											</span>
                    </div>

                    <div id="holyshit268" class="pay-address">

                        <p class="buy-footer-address">
                            <span class="buy-line-title buy-line-title-type">寄送至：</span>
                            <span class="buy--address-detail" th:text="${user.address}">
								   <span class="province">湖北</span>省
												<span class="city">武汉</span>市
												<span class="dist">洪山</span>区
												<span class="street">雄楚大道666号(中南财经政法大学)</span>
												</span>
                            </span>
                        </p>
                        <p class="buy-footer-address">
                            <span class="buy-line-title">收货人：</span>
                            <span class="buy-address-detail">
                                         <span class="buy-user" th:text="${user.userName}">艾迪 </span>
												<span class="buy-phone" th:text="${user.phone}">15871145629</span>
												</span>
                        </p>
                    </div>
                </div>

                <div id="holyshit269" class="submitOrder">
                    <div class="go-btn-wrap">
                        <a th:href="@{/order/success}" id="J_Go" class="btn-go" tabindex="0" title="点击此按钮，提交订单">提交订单</a>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>

    <div class="clear"></div>
</div>
</div>
<div class="footer">
    <div class="footer-hd">
        <p>
            <a href="#">恒望科技</a>
            <b>|</b>
            <a th:href="@{/page/home}">商城首页</a>
            <b>|</b>
            <a href="#">支付宝</a>
            <b>|</b>
            <a href="#">物流</a>
        </p>
    </div>
    <div class="footer-bd">
        <p>
            <a href="#">关于恒望</a>
            <a href="#">合作伙伴</a>
            <a href="#">联系我们</a>
            <a href="#">网站地图</a>
            <em>© 2015-2025 Hengwang.com 版权所有</em>
        </p>
    </div>
</div>
</div>
<div class="theme-popover-mask"></div>
<div class="theme-popover">

    <!--标题 -->
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">新增地址</strong> /
            <small>Add address</small>
        </div>
    </div>
    <hr/>
    <div class="am-u-md-12">
<!--        <form class="am-form am-form-horizontal"  th:action="@{/useradr/newadduseradr}" method="post">-->

        <form class="am-form am-form-horizontal" th:action="@{/useradr/newadduseradr}">

            <div class="am-form-group">
                <label for="user-name" class="am-form-label">收货人</label>
                <div class="am-form-content">
                    <input type="text" id="user-name" name="user-name" placeholder="收货人">
                </div>
            </div>

            <div class="am-form-group">
                <label for="user-phone" class="am-form-label">手机号码</label>
                <div class="am-form-content">
                    <input id="user-phone" name="user-phone" placeholder="手机号必填">
                </div>
            </div>

            <div class="am-form-group">
                <label for="user-phone" class="am-form-label">所在地</label>
                <div class="am-form-content address">
                    <select data-am-selected>
                        <option value="a">浙江省</option>
                        <option value="b">湖北省</option>
                    </select>
                    <select data-am-selected>
                        <option value="a">温州市</option>
                        <option value="b">武汉市</option>
                    </select>
                    <select data-am-selected>
                        <option value="a">瑞安区</option>
                        <option value="b">洪山区</option>
                    </select>
                </div>
            </div>

            <div class="am-form-group">
                <label for="user-intro" class="am-form-label">详细地址</label>
                <div class="am-form-content">
                    <textarea class="" rows="3" id="user-intro" name="user-intro" placeholder="输入详细地址"></textarea>
                    <small>100字以内写出你的详细地址...</small>
                </div>
            </div>

            <div class="am-form-group theme-poptit">
                <div class="am-u-sm-9 am-u-sm-push-3">
                    <input type="submit" value="保存"/>
                    <div class="am-btn am-btn-danger close">取消</div>
                </div>
            </div>
        </form>
    </div>

</div>

<div class="clear"></div>
<script type="">

    function Edit(adrId) {
        // var adrId=data.type;
         //alert(adrId);
        layui.use("layer",function () {
            var layer=layui.layer;
            layer.open({
                type: 2,
                title: '编辑信息',
                maxmin: true,
                shadeClose: true, //点击遮罩关闭层
                area : ['400px' , '400px'],
                content: '/useradr/editadr?id=' +adrId
               // /useradr/editadr?id='+${ladr.adrId}}
                //'/product/product_edit?pId='+pId
            })
        })
    }

    function Default(adrId) {
        // var adrId=data.type;
        //alert(adrId);
        layui.use("layer",function () {
            var layer=layui.layer;
            layer.open({
                type: 2,
                title: '编辑信息',
                maxmin: true,
                shadeClose: true, //点击遮罩关闭层
                area : ['400px' , '400px'],
                content: '/user/editadr?id=' +adrId
                // /useradr/editadr?id='+${ladr.adrId}}
                //'/product/product_edit?pId='+pId
            })
        })
    }



    (function show() {
        alert($("#ot").val())
    })

    function pay() {
        $.ajax({
            url:"/order/save1",
            type:"post",
            data:$("#myform").serialize(),
            success:function (msg) {
                if(msg=="OK"){
                    alert("订单已经生成，请记得支付偶！")
                }
                else {
                    alert("下单失败")
                }
            },
            error:function () {
                alert("请选择您的快递、填写您的留言、选择优惠券")
            }
        })
    }
</script>
</body>

</html>